package cn.lingyangwl.agile.msg.push.model.rqrs.field;

import cn.lingyangwl.agile.model.constants.*;
import cn.lingyangwl.framework.validation.group.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 消息字段库
 *
 * @author shenguangyang
 */
@Getter
@Setter
public class FieldLibraryBase {
	@NotNull(message = ValidationCons.NOT_EMPTY, groups = UpdateGroup.class)
	private Long id;

 	@ApiModelProperty(value = "字段名称")
	@NotEmpty(message = ValidationCons.NOT_EMPTY, groups = InsertGroup.class)
	private String fieldName;
	
 	@ApiModelProperty(value = "字段key")
	@NotEmpty(message = ValidationCons.NOT_EMPTY, groups = InsertGroup.class)
	private String fieldKey;
	
 	@ApiModelProperty(value = "备注")
	private String remark;
}
